package com.news.model;

public class User {
    private int userId;//用户id
    private String password; // 在实际应用中，密码应该被加密
    private String name;//用户名
    private String avatarUrl;//头像url
    public User(int userId, String password, String name, String avatarUrl) {
        this.userId = userId;
        this.password = password;
        this.name = name;
        this.avatarUrl = avatarUrl;
    }
    public User(String name,String password){
        this.password = password;
        this.name = name;
    }
    public User() {

    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
}
